<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('公文详情')"/>
    <th:block th:include="include :: summernote-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="signupForm">
        <div class="form-group">
            <label class="col-sm-2 control-label">公文标题：</label>
            <div class="form-control-static" th:text="${notice.title}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">公文级别：</label>
            <div class="form-control-static"
                 th:class="${notice.level == '0' ? 'label label-primary' : 'label label-danger'}"
                 th:text="${notice.level == '0' ? '总行公文' : '分行公文'}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">发布时间：</label>
            <div class="form-control-static" th:text="${notice.publishTime}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">公文内容：</label>
            <div class="col-sm-10">
                <!--<input id="content" name="content" th:field="*{notice.content}">-->
                <input id="content" name="content" th:field="*{notice.content}" type="hidden">
                <div id="editor" class="summernote"></div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: summernote-js"/>

<script th:inline="javascript">
    $(function () {
        $('#editor').summernote({
            styleWithSpan: false,
            height : 192,
            lang : 'zh-CN',
            toolbar: []//隐藏工具栏
        });
        $('#editor').summernote('disable');//设置只读
        var content = $("#content").val();
        $('#editor').summernote('code', content);
    });
</script>
</body>
</html>